﻿using System;
using System.Runtime.Remoting.Contexts;
using System.Runtime.Remoting.Messaging;

namespace CallTraceSample
{
    class CallTraceProperty : IContextProperty, IContributeObjectSink
    {
        public void Freeze(Context newContext) { }

        public bool IsNewContextOK(Context newCtx)
        {
            return true;
        }

        public string Name
        {
            get { return "CallTraceProperty"; }
        }

        public IMessageSink GetObjectSink(MarshalByRefObject obj, IMessageSink nextSink)
        {
            return new CallTraceSink(nextSink);
        }
    }
}
